package com.zis.auction.model;

import com.zis.auction.model.base.AuctBrowhistModel;
import com.zis.utils.DateUtil;
import org.beetl.sql.core.annotatoin.Table;

import java.util.Date;

/**
 * Create by wangshen 2018/1/2
 */
@Table(name = "a_auct_browhist")
public class AuctBrowhist extends AuctBrowhistModel {

    public String getFormatBrowTime(){
        if(getBrowTime()!=null){
            return DateUtil.getDate(getBrowTime(), "yyyy-MM-dd HH:mm:ss");
        }
        return null;
    }


    public String getFormatStartTime(){
        if(get("startTime")!=null){
            return DateUtil.getDate((Date) get("startTime"), "yyyy-MM-dd HH:mm");
        }
        return null;
    }
}
